package cn.wo.service.impl;

import java.io.Serializable;
import java.util.List;

import cn.wo.beans.Project;
import cn.wo.beans.Workorder;
import cn.wo.dao.IProjectDao;
import cn.wo.service.IProjectService;

public class ProjectServiceImpl implements IProjectService {

	private IProjectDao dao ;
	public List<Project> findAll() {
		return dao.findAll();
	}
	
	public void addOrder(Workorder order) {
		dao.addOrder(order);
	}
	public List<Workorder> findAllOrder() {
		return dao.findAllOrder();
	}
	public Project getProjectByPid(Serializable pid) {
		return dao.getProjectByPid(pid);
	}
	public IProjectDao getDao() {
		return dao;
	}
	public void setDao(IProjectDao dao) {
		this.dao = dao;
	}
}
